package statusModel;

public class SleepState extends State {

    @Override
    public void WriteProgroam(Work w) {
        if (w.getHour() == 0) {
            w.setCurrent(new ResetState());
            w.WriteProgram();
        } else if (w.getHour() < 24) {
            System.out.println("现在" + w.getHour() + "睡觉中");
        }
    }

}
